//
//  QAViewController.m
//  QAGameIM
//
//  Created by 13241143266@163.com on 03/13/2018.
//  Copyright (c) 2018 13241143266@163.com. All rights reserved.
//

#import "QAViewController.h"
#import "QAIMGame.h"
@interface QAViewController ()

@end

@implementation QAViewController

- (void)viewDidLoad
{
    [super viewDidLoad];

    UIButton *button = [UIButton buttonWithType:UIButtonTypeSystem];
    button.frame = CGRectMake(0, 0, 100, 30);
    [button setTitle:@"进入IM" forState:UIControlStateNormal];
    [button addTarget:self action:@selector(showGameController:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:button];
    button.center = self.view.center;
}


- (void)showGameController:(id)sender
{
    [QAIMGame showInResponder:self withInfo:nil delegate:self];
}



- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
